12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 :
- * 설 명 :
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 : fRetriveReportQuryClsf
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>[자동판정]환자별문진등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <acptlist>
- <item>
- <statflag/>
- <inqrstatcd/>
- <inqrrptidnm/>
- <hngnm/>
- <pid/>
- <sex/>
- <age/>
- <hopedd/>
- <pkgnm/>
- <cmpynm/>
- <judgdrid/>
- <addtestnm/>
- <judgdd/>
- <judgwaittermdd/>
- <rsltcnstdrid/>
- <rsltcnstrsrvdd/>
- <rsltcnstflag/>
- <diagnm/>
- <sickcd/>
- <cnstcnts/>
- <prnttims/>
- <prntrid/>
- <inqrremark/>
- <email/>
- </item>
- </acptlist>
- <patinfo>
- <statflag/>
- <inqrstatcd/>
- <hngnm/>
- <pid/>
- <sex/>
- <age/>
- <hopedd/>
- <pkgnm/>
- <addtestnm/>
- <inqrremark/>
- <email/>
- <savetable/>
- </patinfo>
- <amitlist/>
- </main>
- <send_04900>
- <srchdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchrtimeyn/>
- <srchrsltendyn/>
- <srchjudgstatflag/>
- <srchrsltcnststatflag/>
- <srchstatflag/>
- <srchcmpyyn/>
- <srchinstcd/>
- <srchpid/>
- <srchhngnm/>
- <srchlangflag/>
- <savedata>
- <amitlist/>
- </savedata>
- <srchhealexamplacecd/>
- <inqrlist>
- <wkdate/>
- <flag/>
- <instcd/>
- <inqrrptid/>
- <rptclsf/>
- <rsrvdd/>
- <rsrvno/>
- <healexamflag/>
- <healexamdetlflag/>
- <inqrstatcd/>
- <userid/>
- <sex/>
- </inqrlist>
- <histdata>
- <instcd/>
- <rsrvdd/>
- <rsrvno/>
- <inqrstatcd/>
- <inqrcreatdd/>
- <inqrcreatid/>
- <inqrenddd/>
- <inqrendid/>
- <inqrrptid/>
- <userid/>
- </histdata>
- </send_04900>
- <init>
- <baseinfo>
- <statlst/>
- <hedetlflaglst/>
- <drlst>
- <itemdr/>
- </drlst>
- <rsltcnstflaglst/>
- <healexamplacelst/>
- </baseinfo>
- <A0008list>
- <A0008>
- <cdnm/>
- <cdid/>
- </A0008>
- </A0008list>
- <langlst/>
- </init>
- <temp/>
- <userinfo>
- <instcd/>
- <userid/>
- </userinfo>
- <temp2>
- <amitlist/>
- </temp2>
- <msg/>
- <point001007000>
- <p537/>
- <p538/>
- <p539/>
- <p540/>
- <p541/>
- <p542/>
- <p543/>
- <psum_row/>
- </point001007000>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fDefaultSubmit();
-
- fDefaultSet(); //기본 데이터를 셋팅한다.
-
- if(checkOpener()){ //팝업이면 데이터 셋팅을 변경한후에 조회
- var SMAHB04900_PARM = opener.javascript.getParameter("SMAHB04900_PARM");
- var array_parm = SMAHB04900_PARM.split("▦");
-
- model.makeValue("/root/send_04900/srchhealexamflag" , array_parm[1]);
- model.makeValue("/root/send_04900/srchhealexamdetlflag" , array_parm[2]);
- model.makeValue("/root/send_04900/srchfromdd" , array_parm[3] );
- model.makeValue("/root/send_04900/srchtodd" , array_parm[3] );
- model.makeValue("/root/send_04900/srchpid" , array_parm[6] );
-
- btn_search.dispatch("DOMActivate"); //조회
- if(getNodesetCount("/root/main/acptlist/item") > 1){ messageBox("환자의 문진 내역이 2건 이상입니다") ; return false;
- }else if(getNodesetCount("/root/main/acptlist/item") == 0){messageBox("환자의 문진 내역이 없습니다.") ; return false;
- }else{
- grd_acptlist.select(1,1) = true;
- grd_acptlist.dispatch("ondblclick");//문진입력 리스트에서 첫번째 로우 클릭
- }
- if(array_parm[8] == 'Y'){//저장버튼들 비활성화
- btn_gubu.disabled = true;
- btn_updt.disabled = true;
- btn_savepatinfo.disabled = true;
- button1.dispatch("onclick"); }
- }else{ //팝업이아닐때
- fGetAcptList();
- }
-
- model.refresh();
-
-
- ]]>
- </script>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAHB04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/init/langlst"/>
- <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05100" replace="instance" resultref="/root/init/baseinfo/drlst"/>
- <submission id="TRAHB04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900" replace="instance" resultref="/root/main/acptlist"/>
- <submission id="TRAHB04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/init/rptqrcl"/>
- <submission id="TRAHB04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/main/amitlist"/>
- <submission id="TXAHB04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/savedata/amitlist" resultref="/root/temp"/>
- <submission id="TRAHB03805" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXAHB04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/temp"/>
- <submission id="TXAHB04904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/histdata"/>
- <submission id="TXAHB04905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo" resultref="/root/msg"/>
- <submission id="TRAHA00001"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
-
- function fDefaultSubmit() {
- model.makeValue("/root/send_04900/srchhealexamflag" , 'C');
- model.makeValue("/root/send_04900/srchcond", "J");
- submit("TRAHB01504");
-
- addComboItem( "cmb_drid" , "전체", "");
-
-
- zbcfGetCodeList( new Array("A0069","A0107", "A0123")
- , new Array( "/root/init/baseinfo/hedetlflaglst" //건진구분
- , "/root/init/baseinfo/statlst" //상태
- , "/root/init/baseinfo/rsltcnstflaglst" )//상담방법
- );
- submit("TRZBC00101");
-
- fGetHealexamCodeList( new Array("A0008"),
- new Array("/root/init/A0008list" ) );
- healGetCodeList( new Array("S600","S600")
- , new Array("/root/init/baseinfo/healexamplacelst"
- ,"/root/init/baseinfo/healexamplacecd") );
- }
-
- function finit() {
- model.resetInstanceNode("/root/send_04900/histdata");
- model.resetInstanceNode("/root/send_04900/inqrlist");
- // model.resetInstanceNode("/root/send_04900");
- model.resetInstanceNode("/root/main/patinfo");
- model.resetInstanceNode("/root/main/amitlist");
- model.resetInstanceNode("/root/init/rptqrcl");
- }
-
-
-
- function fDefaultSet() {
-
- //유저에 따라 판정의셋팅
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var cnt_userid = UserInfosS_Array[0]; //사용자번호
- model.setValue("/root/userinfo/userid", UserInfosS_Array[0]);
- model.setValue("/root/userinfo/instcd", UserInfosS_Array[6]);
- var drnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + cnt_userid +"']/drnm");
- if(drnm != ""){
- // 의사이면 한달
- model.setValue("/root/send_04900/srchdrid",cnt_userid); //의사 아이디 셋팅
- model.setValue("/root/send_04900/srchfromdd",(getCurrentDate().toDate().getAddDate(-1, 'M')).getDateFormat("YYYYMMDD")); //한달전으로 셋팅
- model.setValue("/root/send_04900/srchtodd",getCurrentDate()); //금일로 셋팅
-
- //건진조회기본값 셋팅
- model.setValue("/root/send_04900/srchrtimeyn",'Y'); //검사중
- model.setValue("/root/send_04900/srchrsltendyn",'Y'); //결과입력중
- model.setValue("/root/send_04900/srchstatflag",'H'); //판정대기
- }else{
- // 의사가 아니면 한달
- model.setValue("/root/send_04900/srchfromdd",getCurrentDate()); //금일로 셋팅
- model.setValue("/root/send_04900/srchtodd",getCurrentDate()); //금일로 셋팅
- model.setValue("/root/send_04900/srchdrid",""); //의사 아이디 셋팅 료
-
- //건진조회기본값 셋팅
- model.setValue("/root/send_04900/srchrtimeyn",'Y'); //검사중
- model.setValue("/root/send_04900/srchrsltendyn",'Y'); //결과
- model.setValue("/root/send_04900/srchstatflag",'H'); //판정대기
- model.setValue("/root/send_04900/srchjudgstatflag",'N Y'); //판정중, 판정완료
-
- }
-
- //건진종류셋팅
- model.setValue("/root/send_04900/srchinstcd",UserInfosS_Array[6]);
- model.setValue("/root/send_04900/srchhealexamflag",'C');
- model.setValue("/root/send_04900/srchhealexamdetlflag",'C01');
-
- // model.refresh();
- }
-
- //문진입력 리스트 조회
- function fGetAcptList(){
- submit("TRAHB04901",false);
- }
- // ----------------------------------------------------
- // 문진분류 조회(콤보박스)
- // ----------------------------------------------------
- function fGetInqrCdList(){
- model.setValue("/root/send_04900/inqrlist/flag","QRFM");
- model.setValue("/root/send_04900/inqrlist/wkdate" , model.getValue("/root/main/patinfo/hopedd") );
- model.setValue("/root/send_04900/inqrlist/instcd" , model.getValue("/root/send_04900/srchinstcd") );
- model.setValue("/root/send_04900/inqrlist/rsrvdd" , model.getValue("/root/main/patinfo/rsrvdd") );
- model.setValue("/root/send_04900/inqrlist/rsrvno" , model.getValue("/root/main/patinfo/rsrvno") );
- model.setValue("/root/send_04900/inqrlist/inqrrptid" , model.getValue("/root/main/patinfo/inqrrptid") );
- model.setValue("/root/send_04900/inqrlist/healexamflag" , model.getValue("/root/send_04900/srchhealexamflag") );
- model.setValue("/root/send_04900/inqrlist/healexamdetlflag" , model.getValue("/root/send_04900/srchhealexamdetlflag") );
- model.setValue("/root/send_04900/inqrlist/sex" , model.getValue("/root/main/patinfo/sex") );
-
- submit("TRAHB04201",false);
- }
- // ----------------------------------------------------
- // 이력생성
- // ----------------------------------------------------
- function fHistSaveData(inqrstatcd){
-
- model.resetInstanceNode("/root/send_04900/histdata");
- model.setValue("/root/send_04900/histdata/instcd",model.getValue("/root/main/patinfo/instcd"));
- model.setValue("/root/send_04900/histdata/userid", model.getValue("/root/userinfo/userid"));
- model.setValue("/root/send_04900/histdata/rsrvdd",model.getValue("/root/main/patinfo/rsrvdd"));
- model.setValue("/root/send_04900/histdata/rsrvno",model.getValue("/root/main/patinfo/rsrvno"));
- model.setValue("/root/send_04900/histdata/inqrstatcd", inqrstatcd);
- if(inqrstatcd =='G'){ //거부
-
- }else{
- model.setValue("/root/send_04900/histdata/inqrcreatdd", getCurrentDate()); //문진생성일자
- model.setValue("/root/send_04900/histdata/inqrcreatid", model.getValue("/root/userinfo/userid")); //문진생성자
-
- model.setValue("/root/send_04900/histdata/inqrrptid", model.getValue("/root/send_04900/inqrlist/inqrrptid")); //문진지종류
- if(inqrstatcd == 'Y'){ //문진을 모두 입력했으면
- model.setValue("/root/send_04900/histdata/inqrenddd", getCurrentDate()); //문진최종수정일
- model.setValue("/root/send_04900/histdata/inqrendid", model.getValue("/root/userinfo/userid")); //문진최종수정자
- }//if end
- }//else end
- submit("TXAHB04904",false);
- }
-
-
- // ----------------------------------------------------
- // 문진지별 문진분류 조회(트리)
- // ----------------------------------------------------
- function fRetriveReportQuryClsf()
- {
- submit("TRAHB04702",false);
-
- }
-
- // ----------------------------------------------------
- // 문진지별 질문내용 조회
- // ----------------------------------------------------
- function fRetriveQuryReport(clsfid){
- model.setValue("/root/send_04900/inqrlist/rptclsf", clsfid);
-
- submit("TRAHB04902",false);
-
- //질문내용 변경 체크를 비교하기위해 내역을 카피해둔다.
- copyNodesetType("/root/temp2/amitlist" , "/root/main/amitlist" , "replace");
- model.refresh();
- var lastupdtrid = ""; var chkbox = "";
- for(var i = 1; i < grd_amit.rows; i++) {
- lastupdtrid = grd_amit.valueMatrix(i, grd_amit.colRef("amit_lastupdtdt"));
- chkbox = grd_amit.valueMatrix(i, grd_amit.colRef("amit_chkbox"));
-
- if(chkbox == "Y" && lastupdtrid == ""){//최초에 내역 불러왔을때 기본값으로 체크된걸 저장 해줘야함.
- grd_amit.rowStatus(i)=1; //없던게 생겼으므로 인서트
- }
- }//for end
-
-
-
- // if(grd_acptlst.valueMatrix(grd_acptlst.row,grd_acptlst.colRef("inqrflag"))=="2" ){
- // grd_amit.disabled="true";
- // }else{
- // grd_amit.disabled="false";
- // }
- }
-
- // ----------------------------------------------------
- // 질문에 대해서 disabled
- // ----------------------------------------------------
- function fCheckTranFlag() {
- for(var i = 1; i < grd_amit.rows; i++) {
- qestflag = grd_amit.valueMatrix(i, grd_amit.colRef("amit_qestflag"));
-
- if(qestflag == "Q" || qestflag == "E" ) {
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw2")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "true";
- initGridStyle("grd_amit");
- setRowStyle("grd_amit" , "2" , "하위문제" , "amit_qestflagnm" ,"equal");
- setRowStyle("grd_amit" , "4" , "문제" , "amit_qestflagnm" ,"equal");
- setRowStyle("grd_amit" , "3" , "설명" , "amit_qestflagnm" ,"equal");
- setRowStyle("grd_amit" , "5" , "하위문제답" , "amit_qestflagnm" ,"equal");
- setRowStyle("grd_amit" , "6" , "하위문제" , "amit_qestflagnm" ,"equal"); // 아직 사용안함.
- setRowStyle("grd_amit" , "7" , "하하위문제답" , "amit_qestflagnm" ,"equal"); //아직 사용안함.
-
- }else {
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw4")) = "false";
- }//if end
- grd_amit.cellAttribute("input", i, grd_amit.colRef("amit_essnchoiflag")) = "output";
- }//for end
- }
-
-
- // --------------------------------------------------------------------------------------------------------------------------------------
- //화면 그리드 조절
- // -----------------------------------------------------------------------------------------------------------------------------------
- function fGridWidthcontrol(sGrd,sStatus){
- // 질문 내역 그리드를 늘릴때
- if ( sGrd == "amit") {
- if(sStatus == "W") {
- grd_amit.attribute ("width") ="1178px";
- grd_amit.attribute("left") ="0px"
- // grd_acptlst.attribute("width")="309px"
- grd_acptlist.attribute("height")="120px"
- trvclsf.visible=false;
- }
- }
-
- if(sStatus == "N") {
- trvclsf.visible = true;
- grd_amit.attribute ("width") ="683px";
- grd_amit.attribute("left") ="495px"
- // grd_acptlst.attribute("width")="309px"
- grd_acptlist.attribute("height")="620px"
- }
-
- if(sStatus == "A") {
- if( button1.value == "전체보기" ){
- trvclsf.visible = true;
- trvclsf.attribute("left") ="1px"
- trvclsf.attribute("top") ="5px"
- grd_amit.attribute("top") ="5px"
- grd_amit.attribute("left") ="181px"
- grd_amit.attribute ("width") ="1000px";
- grd_amit.attribute("height") ="700px"
- grd_acptlist.visible=false;
- button1.value = "부분보기";
- button1.attribute("top") ="520px"
- button1.attribute("left") ="1px"
-
- }else if( button1.value == "부분보기" ){
- trvclsf.visible = true;
- trvclsf.attribute("left") ="310px"
- trvclsf.attribute("top") ="235px"
- grd_amit.attribute("top") ="237px"
- grd_amit.attribute("left") ="495px"
- grd_amit.attribute ("width") ="683px";
- grd_amit.attribute("height") ="478px"
- grd_acptlist.visible=true;
- button1.value = "전체보기";
- button1.attribute("top") ="212px"
- button1.attribute("left") ="670px"
- }
-
- }
-
-
- }//fGridWidthcontrol 그리드 조절 끝
-
-
- //===================================================================================
- //@desc : Grid의 선택된 값에 대한 RowStatus 변경, 단일입력 항목 확인
- //=====================================================================================
-
- function fQueryRptGridCheck(rowid){
-
- // 단일항목 선택인 경우 다른 같은 질문에 대해
- // 다른 답안이 선택 되어 있는가 확인
- // 만약 되어 있다면 N로 바꾸고
- // 바뀐 ROW또한 상태 값을 변경 해야 한다,,
-
- // 1. 해당로우에 입력형태를 확인
- // 2. 입력 형태가 단일이면
- // 2-1 질문 ID를 읽는다
- // 2-2 그리드를 for로 돌리면서
- // 같은 질문 ID인 경우를 확인하고
- // check 값인 Y인가를 확인한다
- // Y인 행의 값이 현재 넘어온 향의 값과 다르다면
- // N로 바꾸고
- // fQueryRptGridStatusChk(i)를 호출한다
- // 3. 다중인 경우
- // 바로 fQueryRptGridStatusChk(rowid)를 호출해서 상태값만 변경한다.
- var QuerType;
- var Chtype ;
- var SelRowQuerId = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqrqestid"));
- var SelRowChk = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
-
- var ForRowQuerId;
- var ForRowChk;
- var QuerType;
- var RowLevel;
- for( var fRow = 1 ; fRow < grd_amit.rows; fRow++){
- // 그리드의 질문ID를 가지고 온다
- ForRowQuerId = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_inqrqestid"));
-
- // For Loop에 의한 질문ID와 선택된 Row의 질문ID가 같은 가를 확인한다.
- if ( SelRowQuerId == ForRowQuerId) {
-
- // 같은 질문ID의 질문 항목에 있는 유형 중 질문 인것을 파악 한다.
- if ( grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_qestflag")) == 'Q') {
-
- // 유형인 질문인 것의 답안 형태를 가지고 온다
- QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype")) ;
- //QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype"));
-
- }
-
- // 단일 인지를 파악 한다
- if ( QuerType == '2' )
- {
- // For Loop에 의해 돌아 가는 행의 선택 값을 가지고 온다
- ForRowChk= grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox"));
-
-
- // 현재 행의 값이 'Y'인지를 파악한다
- if ( ForRowChk == 'Y') {
-
- // 선택된 행과 현재의(for loop) 행이 같은 행인지 여부를 파악한다
- if ( rowid != fRow ) {
- // 선택된 행과 현재의 행이 다른 행인 경우 현재의 행을 N로 선택하고
- // 현재의 행의 status를 변경한다.
-
- grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox")) = 'N' ;
- fQueryRptGridStatusChk(fRow);
- } else{
- // for loop의 행과 선택 행이 같은 행 이므로 Status만 변경한다.
- fQueryRptGridStatusChk(fRow);
- }
-
- }
- }else {
- // 단일 선택이 아닌 경우 즉 다중선택인 경우 해당 row의 status를 변경한다
- if ( rowid == fRow ) {
- fQueryRptGridStatusChk(fRow);
- }
- }
-
- }
- }//for end
- }
- function fQueryRptGridStatusChk(rowid){
- var chkbox = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox")); //새 값
- var org_chkbox = model.getValue("/root/temp2/amitlist['"+ rowid +"']/amit_chkbox"); //원값
-
- if(chkbox == 'Y' && org_chkbox == 'Y'){
- grd_amit.rowStatus(rowid)=2; //전후가 같으면 상태는 없음
- }else if(chkbox == 'N' && org_chkbox == 'N'){
- grd_amit.rowStatus(rowid)=0; //없던게 생겼으므로 인서트
- }else if(chkbox == 'Y' && org_chkbox == 'N'){
- grd_amit.rowStatus(rowid)=1; //없던게 생겼으므로 인서트
- }else if(chkbox == 'N' && org_chkbox == 'Y'){
- grd_amit.rowStatus(rowid)=4; //있던게 없어졌으므로 삭제
- }
- /*
- //넘겨 받은 rowid의
- var CheckV1=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbit"));
- //상태비트와 check를 읽는다
- var CheckV2=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
- //상태가 I인 경우
- if(CheckV1 == 'I') {
- if(CheckV2 =='Y'){
- grd_amit.rowStatus(rowid)=1;//check가 Y라면 상태는 입력이고
- }else{
- grd_amit.rowStatus(rowid)=0;////N라면 조회원래 상태로 변경
- }
- }else{
- //상태가 S인 경우
- if(CheckV2 =='N'){
- grd_amit.rowStatus(rowid)=4; // N라면 상태값은 삭제
- }else{
- // Y라면 상태 변화 없음 -> 조회원래 상태로 변경
- if ( grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqransw"))!="") {
- grd_amit.rowStatus(rowid)=2;
- } else {
- grd_amit.rowStatus(rowid)=0;
- }
- }
-
- } */
- }///fQueryRptGridStatusChk end
-
- //문진 상태를 업데이트 한다.
- function fInqrExeStat(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var cnt_userid = UserInfosS_Array[0]; //사용자번호
-
- model.setValue("/root/send_04900/inqrlist/userid", cnt_userid);
-
- var rsrvdd = model.getValue("/root/send_04900/inqrlist/rsrvdd");
- if(rsrvdd == ""){
- messageBox("환자가 선택되지 않았습니다.", "E999");
- }
- submit("TXAHB04903",false);
- }
-
- // 20100723 JHP 처음 조회 했을때 문진지별 질문내용에 계산되는 부분에 처음 계산을 하게끔 계산로직 태운다.
- function fFirstSumChk(){
- var sex = model.getValue("/root/main/acptlist/item['"+ grd_acptlist.row + "']/sex");
- // 20100723 JHP 남자에 해당되는 질환이기에 sex구분 추가
- if(sex == "M"){
- var sum_point = parseInt(model.getValue("/root/point001007000/p537"))
- + parseInt(model.getValue("/root/point001007000/p538") )
- + parseInt(model.getValue("/root/point001007000/p539") )
- + parseInt(model.getValue("/root/point001007000/p540") )
- + parseInt(model.getValue("/root/point001007000/p541") )
- + parseInt(model.getValue("/root/point001007000/p542") )
- + parseInt(model.getValue("/root/point001007000/p543") )
-
- var row_id = model.getValue("/root/point001007000/psum_row") ;
- model.setValue("/root/main/amitlist['"+ row_id + "']/amit_addansw1" , sum_point);
- var check_box = model.getValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox");
- if(check_box == "Y"){
- grd_amit.rowStatus(row_id)=2; //업데이트
- }else{
- grd_amit.rowStatus(row_id)=1;
- model.setValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox" , 'Y');
- }
- model.refresh();
- }
- }
-
- // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
- function fChkView(){
- // 20100726 JHP 트리뷰에서 선택할때 트리뷰 구조에서 하위가 존재하는
- // 트리뷰일경우 그것에 해당되는 내용을 조회하지 않고 다음것을 조회 하도록 변경함.
- var item = trvclsf.item(trvclsf.selectedIndex);
- var iRow = item.index + 1;
- var selectitem = trvclsf.item(trvclsf.selectedindex).value;
- var chktreeview;
- var getajclscd;
- var getajclsvalue;
- if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 1){
- chktreeview = selectitem.substr(0, 3);
- chktreeview = chktreeview + "001000";
- for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
- getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
- if(chktreeview == getajclscd){
- getajclsvalue = getajclscd;
- }
- }
- if(chktreeview == getajclsvalue){
- trvclsf.select(trvclsf.selectedindex+1);
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- model.refresh();
- }else{
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- grd_amit.refresh();
- }
- } else if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 2){
- chktreeview = selectitem.substr(0, 6);
- chktreeview = chktreeview + "001";
- for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
- getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
- if(chktreeview == getajclscd){
- getajclsvalue = getajclscd;
- }
- }
- if(chktreeview == getajclsvalue){
- trvclsf.select(trvclsf.selectedindex+1);
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- model.refresh();
- }else{
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- grd_amit.refresh();
- }
- } else if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 3){
- chktreeview = selectitem.substr(0, 9);
- chktreeview = chktreeview + "001";
- for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
- getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
- if(chktreeview == getajclscd){
- getajclsvalue = getajclscd;
- }
- }
- if(chktreeview == getajclsvalue){
- trvclsf.select(trvclsf.selectedindex+1);
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- model.refresh();
- }else{
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- grd_amit.refresh();
- }
- } else{
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- grd_amit.refresh();
- }
- }
- /*
- ===================================================================================
- *초기화
- * bDetl => true : 건진자별 상세내역만 초기화
- =====================================================================================
- function fInit(bDetl){
- model.removeNodeset(grd_acptlst.nodeset);
- model.resetInstanceNode("");
- if( bDetl) {
- return ;
- }
- model.resetInstanceNode("/root/main/info/item");
- model.refresh();
- }
-
- function fgridMergeRow(grd_nm){
- var cnt = grd_nm.rows;
- var oldnm = "";
- var grdnm = "";
- var lt = 1; var lb = 1;
-
- for (var i=1 ;i<=cnt ;i++){
- if(grdnm == grd_nm.valueMatrix(i,2)){
- // grd_nm.valueMatrix(i,1) = "";
- } else{
- grdnm = grd_nm.valueMatrix(i,2);
- grd_nm.mergeByFree(lt,2,i-1,2);
-
- lt = i;
-
- }
- }
- }
- ===================================================================================
- ** 조회조건 초기화
- =====================================================================================
- function fSrchInit(){
- cmb_srchhealexamdetlflag.refresh();
- cmb_srchhealexamdetlflag.select(0);
- var cur_date = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
- //model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
-
- }
- function fgrdImage(grd_nm){
- var cnt = grd_nm.rows;
- for (var i=1 ;i<=cnt ;i++){
- if(grd_nm.valueMatrix(i,grd_nm.colRef("rsltflag"))=="O"){
- grd_nm.cellstyle("background-image", i, 5) = "../../../ast/healexamweb/image/si.bmp"
- grd_nm.cellstyle("background-position", i, 5) = "center center"
- }
- }
- }
- ===================================================================================
- *기본코드 내역 가져오기
- =====================================================================================
- function fGetBasicCdList(){
-
- vHealexamflag = fGetHealExamFlag();
- openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
-
-
- zbcfGetCodeList( new Array("A0069", "A0066","A0110","A0106", "A0107","A0070")
- , new Array( "/root/init/baseinfo/hedetlflaglst"
- , "/root/init/baseinfo/rslttypelst"
- , "/root/init/baseinfo/plceflag"
- , "/root/init/baseinfo/inqrflag"
- , "/root/init/baseinfo/statlst"
- , "/root/init/baseinfo/hedetlflaglst" ) );
- submit("TRZBC00101");
-
- //검사실 코드조회
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
- var cnt = getNodesetCount("/root/init/baseinfo/hedetlflaglst/A0070");
-
- for (var i=0;i<cnt;i++){
- var grCd = model.getValue("/root/init/baseinfo/hedetlflaglst/A0070[" + i+"]/cdid");
- var grNm = model.getValue("/root/init/baseinfo/hedetlflaglst/A0070[" + i+"]/cdnm");
- if(grNm !=""){
- model.makeValue("/root/init/baseinfo/hedetlflaglst/A0069["+i+2+"]/cdid" , grCd);
- model.makeValue("/root/init/baseinfo/hedetlflaglst/A0069["+i+2+"]/cdnm" , grNm);
- }
- }
-
- submit("TRAHB01502");
-
- 판정의조회
- model.makeNode("/root/send/srchcond" );
- model.setValue("/root/send/srchcond", "J");
- submit("TRAHB01504");
-
- closeLoadingBar() ;//처리중 화면을 close한다.
-
-
-
- }
- ===================================================================================
- *사용자 부서 정보
- =====================================================================================
- function fSetSuppDeptcd() {
- var dutplcecd = getUserInfo("dutplcecd");
- //var selectplcecd = getScreenPrestDeptCd();
-
- model.setValue("/root/send/srchdeptcd" , dutplcecd);
- model.setValue("/root/send/srchdeptcd" , dutplcecd);
- }
- *===================================================================================
- *로그인시 권한등록된 검사실 정보 조회
- =====================================================================================
- function fGetAuthTestRoom() {
- fSetSuppDeptcd();
- model.setValue("/root/send/srchuserid" , getUserId());
- submit("TRAHB01202");
- }
-
- // ----------------------------------------------------
- // 문진지별 문진분류 조회
- // ----------------------------------------------------
- function fRetriveReportQuryClsf()
- {
- model.removeNodeset(grd_amit.nodeset);
- model.removeNodeset("/root/disply/rptqrcl");
- model.removeNodeset("/root/main/list/amqblist");
- submit("TRAHB04702",true);
-
- }
-
- // ----------------------------------------------------
- // 문진지별 질문내용 조회
- // ----------------------------------------------------
- function fRetriveQuryReport(clsfid)
- {
- model.removeNodeset("/root/main/list/amitlist");
- // model.setValue("/root/main/list/amitlist/healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
- // model.setValue("/root/main/condition/wkdate" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
- // model.setValue("/root/main/condition/wkdate" , model.getValue("/root/main/acptinfo/item/rsrvno") );
-
- model.setValue("/root/main/condition/rptclsf", clsfid);
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
-
- // model.copyNode("/root/main/list/amitlist", "/root/main/acptinfo/item");
- submit("TRAHB04902",true);
- if(grd_acptlst.valueMatrix(grd_acptlst.row,grd_acptlst.colRef("inqrflag"))=="2" )
- {
- grd_amit.disabled="true";
- }
- else
- {
- grd_amit.disabled="false";
- }
- }
-
-
- // ----------------------------------------------------
- // 질문에 대해서 disabled
- // ----------------------------------------------------
- function fCheckTranFlag() {
- for(var i = grd_amit.fixedRows; i < grd_amit.rows; i++) {
- // alert(grd_goodreq.valueMatrix(i, grd_goodreq.colRef("tranflag")));
- if(grd_amit.valueMatrix(i, grd_amit.colRef("amit_qestflag")) == "Q") {
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw2")) = "true";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "true";
- }
- else {
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "false";
- grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw4")) = "false";
- }
- // else if{(grd_amit.valueMatrix(i, grd_amit.colRef("amit_inqransw")) == "" || (grd_amit.valueMatrix(i, grd_amit.colRef("amit_inqransw")) != "" ))
- // {
- // grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
- //
- // }
- }
- }
- ===================================================================================
- *결과입력대상자 가져오기
- *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
- =====================================================================================
- function fGetRsltPatList(){
- openLoadingBar("결과입력 대상 건진자리스트") ;//처리중 화면을 오픈한다.
- model.removeNodeset(grd_acptlst.nodeset);
- model.resetInstanceNode("/root/main/acptinfo/item");
- model.removeNodeset("/root/main/list/amqblist");
- model.resetInstanceNode("/root/disply/rptqrcl");
- model.resetInstanceNode("/root/disply/langlst");
- model.resetInstanceNode("/root/main/condition/inqrrptid");
- model.removeNodeset(grd_amit.nodeset);
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
- model.setValue("/root/send/srchpid" , model.getValue("/root/init/send/srchpid2") );
- model.setValue("/root/send/srchpnm" , model.getValue("/root/init/send/srchpnm") );
- model.setValue("/root/send/srchroomcd" , model.getValue("/root/init/send/srchroomcd") );
- model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
-
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/srchhealexamflag", fGetHealExamFlag());
-
- var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
- model.makeValue("/root/send/srchhealexamflag",examflag );
- model.setValue("/root/send/srchtodd", model.getValue("/root/send/srchfromdd") );
- model.makeValue("/root/send/srchstatfg" , model.getValue("/root/init/send/srchstatfg"));
- submit("TRAHB04901");
-
- model.makeValue("/root/send/srchclscd", "G");
- model.makeValue("/root/send/srchetccd", "G10");
- submit("TRAHB00604");
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- *===================================================================================
- @desc :건진일자변경
- @param : vDateFg -기간구분(Y-Year, M-Month, D-Day)
- vTerm- 기간
- =====================================================================================
- function fSetOrdDD(vDateFg , vTerm){
- if( (vDateFg != "Y" ) && (vDateFg != "M")&& (vDateFg != "D") ) {
- return ;
- }
-
- var iTerm = parseInt(vTerm);
-
- var isDate = (model.getValue("/root/init/send/srchfromdd")).toDate().getAddDate(iTerm,vDateFg);
-
- model.setValue("/root/init/send/srchfromdd", isDate.getDateFormat('YYYYMMDD'));
- ipt_srchfromdd.refresh();
- fGetRsltPatList();
- }
- =============================================================================================================
- *결과 내역을 조회하기 위한 조건정보 체크
- =============================================================================================================
- function fCheckExamInfo(){
- var idx = grd_acptlst.row;
- if( idx < 1) {
- //messageBox("수진자를 ", "C002");
- return false;
- }
- model.copyNode("/root/main/acptinfo/item", grd_acptlst.nodeset + "[" + idx + "]");
- //결과내역가져오기
- var sNode = grd_acptlst.nodeset + "[" + idx + "]/";
- var rsrvdd = model.getValue(sNode + "rsrvdd");
- var rsrvno = model.getValue(sNode + "rsrvno");
- var pid = model.getValue(sNode + "pid");
- var orddd = model.getValue(sNode + "orddd");
- var cretno = model.getValue(sNode + "cretno");
- var pkgcd = model.getValue(sNode + "pkgcd");
- var sex = model.getValue(sNode + "sex");
- var inqrprntflag = model.getValue(sNode + "inqrprntflag");
- var hopedd = model.getValue(sNode + "hopedd");
-
- if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
- messageBox("유효하지 않은 데이터 입니다!", "E999");
- return false;
- }
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
- model.setValue("/root/send/srchpnm" , model.getValue("/root/init/send/srchpnm") );
- model.setValue("/root/send/srchroomcd" , model.getValue("/root/init/send/srchroomcd") );
- model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
- model.setValue("/root/send/srchasischk" , model.getValue("/root/init/send/srchasischk") );
-
- model.setValue("/root/send/srchrsrvdd" , rsrvdd );
- model.setValue("/root/send/srchrsrvno" , rsrvno );
- model.setValue("/root/send/srchpid" , pid );
- model.setValue("/root/send/srchorddd" , orddd );
- model.setValue("/root/send/srchcretno" , cretno );
- model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() );
- model.setValue("/root/send/srchhopedd" , hopedd) ;
-
- var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
- model.makeValue("/root/send/srchhealexamflag",examflag );
-
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/srchpkgcd" , pkgcd);
- model.setValue("/root/send/srchsex" , sex);
-
- //ahafSetScreenTopPatInfo( pid , orddd , cxretno );
- }
-
- // --------------------------------------------------------------------------------------------------------------------------------------
- //화면 그리드 조절
- // -----------------------------------------------------------------------------------------------------------------------------------
- function fGridWidthcontrol(sGrd,sStatus)
- {
- // 질문 내역 그리드를 늘릴때
- if ( sGrd == "amit") {
- if(sStatus == "W") {
- grd_amit.attribute ("width") ="1185px";
- grd_amit.attribute("left") ="5px"
- // grd_acptlst.attribute("width")="309px"
- grd_acptlst.attribute("height")="120px"
- trvclsf.visible=false;
-
- }
- }
-
- if(sStatus == "N") {
- trvclsf.visible = true;
- grd_amit.attribute ("width") ="690px";
- grd_amit.attribute("left") ="500px"
- // grd_acptlst.attribute("width")="309px"
- grd_acptlst.attribute("height")="635px"
-
- }
- }
-
-
- *=============================================================================================================
- @desc : 종합건진 결과 내역 조회
- =============================================================================================================
- function fGetRsltInfo(){
- model.resetInstanceNode("/root/main/acptinfo/item");
-
- if( fCheckExamInfo() == false ){
- model.refresh();
- return ;
- }
-
- openLoadingBar("검사결과정보 ") ;//처리중 화면을 오픈한다.
- fGetInqrCdList(); // 문진내역을 조회한다.
- var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
- model.makeValue("/root/send/srchhealexamflag",examflag );
- // if( submit("TRAHR00201") == true ){
- // }
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- =============================================================================================================
- @desc : 결과입력 grid 초기상태 setting
- =============================================================================================================
- function fSetGridInitState(vGrdObj){
- if(vGrdObj == null ) return ;
-
- vGrdObj.refresh();
- var cnt = vGrdObj.rows;
-
- for( var i = 1 ; i <= cnt ; i++){
-
- * 처음일 경우만 결과값 insert
-
- if( model.getValue( vGrdObj.nodeset + "[" + i + "]/inptflag") == "i" && model.getValue( vGrdObj.nodeset + "[" + i + "]/rslthistseq") == 0)
- {
- vGrdObj.addStatus(i, "insert");
- }
- // 기준치에 따른 색깔변경
-
- if("H" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
- vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ff7a85";
- }
- if("L" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
- vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#99ccff";
- }
-
- }
- vGrdObj.refresh();
- }
- =====================================================================================================================
- @desc : 건진일자의 전체 외래연동결과 가져오기
- ====================================================================================================================
- function fGetAllOutRslt(){
- grd_acptlst.clearStatus();
- for(var i=1; i < grd_acptlst.rows; i++) {
- if(grd_acptlst.valueMatrix(i , grd_acptlst.colRef("sel")) == "Y") {
- grd_acptlst.rowStatus(i) = 1;
- }
- }
- var outData = grd_acptlst.getUpdateData();
- if(outData == "") {
- messageBox("대상자가" , "I004");
- }
- model.setValue("/root/send/saveallout" , outData);
-
- openLoadingBar("외래결과 ") ;//처리중 화면을 오픈한다.
- var ret = submit("TXAHR00203");
- closeLoadingBar() ;//처리중 화면을 close한다.
-
- if( ret == true ){
- fGetRsltInfo();
- }
- }
- =====================================================================================================================
- @desc : 문진내역가져오기
- =====================================================================================================================
- function fGetInqrCdList(){
- // model.removeNodeset(grd_inqrlst.nodeset);
- // model.removeNodeset("/root/main/condition/inqrrptid");
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/condition/instcd",instcd);
- model.setValue("/root/main/condition/flag","QRFM");
- model.setValue("/root/main/condition/wkdate" , model.getValue("/root/init/send/srchfromdd") );
- model.setValue("/root/main/condition/healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
- model.setValue("/root/main/condition/rsrvdd" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
- model.setValue("/root/main/condition/rsrvno" , model.getValue("/root/main/acptinfo/item/rsrvno") );
- model.resetInstanceNode("/root/send/langlst");
- model.copyNode("/root/send/langlst", "/root/main/condition");
-
- submit("TRAHB04201");
-
- // if( submit("TRAHR01003") == true ){
- // grd_inqrlst.refresh();
- // var cnt = grd_inqrlst.rows;
- //
- // for( var i = 1 ; i <= cnt ; i++){
- // if( model.getValue( grd_inqrlst.nodeset + "[" + i + "]/inptflag") == "i" )//입력모드
- // {
- // grd_inqrlst.addStatus(i, "insert");
- // }
- // }
- // grd_inqrlst.refresh();
- // }
- }
-
-
- ===========================================================================================================================
- *문진선택형결과 가져오기
- * IN : 문진구분/문진코드/기관코드
- =============================================================================================================================
- function fGetInqrAnsCdList( vTop ){
- var idx = grd_inqrlst.row;
- if( idx < 1) return ;
- model.makeNode("/root/send/srchinqrflag");
- model.makeNode("/root/send/ansinqrcd");
- model.makeNode("/root/send/srchinstcd");
-
- model.setValue( "/root/send/srchinqrflag" , model.getValue(grd_inqrlst.nodeset + "[" + idx + "]/inqrflag" ) );
- model.setValue( "/root/send/ansinqrcd" , model.getValue(grd_inqrlst.nodeset + "[" + idx + "]/inqrcd" ) );
- model.setValue( "/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.removeNodeset(grd_inqranslst.nodeset);
- ipt_answcd.value = "";
- if( submit("TRAHB00202") == true ) {
- if( vTop != "" ){
- grp_inqrans.attribute("top") = parseInt(vTop);
- }
- grp_inqrans.visible = true;
- model.setFocus("ipt_answcd");
- }
- }
- *======================================================================================================================================
- * 문진답안선택시 gird로 값 setting
- =========================================================================================================================================
- function fSetInqrAns(){
- var idx = grd_inqrlst.row;
- if( idx < 1) return ;
-
- var ansidx = grd_inqranslst.row;
- if( ansidx < 1 ) return ;
- var old_ans = grd_inqrlst.valueMatrix(idx, col_inqranswcd) ;
- var new_ans = grd_inqranslst.valueMatrix( ansidx, 1);
- if( old_ans == new_ans ) return ;
-
- grd_inqrlst.valueMatrix(idx, col_inqranswcd) = grd_inqranslst.valueMatrix( ansidx, 1);
- grd_inqrlst.valueMatrix(idx, col_inqranswcnts) = grd_inqranslst.valueMatrix( ansidx, 2);
- if( grd_inqrlst.rowStatus(idx) == 0 ) {
- grd_inqrlst.addStatus(idx, "update");
- }
- grd_inqrlst.refresh();
- }
- *===================================================================================
- @desc : Grid의 선택된 값에 대한 RowStatus 변경, 단일입력 항목 확인
- =====================================================================================
-
- function fQueryRptGridCheck(rowid)
- {
-
- // 단일항목 선택인 경우 다른 같은 질문에 대해
- // 다른 답안이 선택 되어 있는가 확인
- // 만약 되어 있다면 N로 바꾸고
- // 바뀐 ROW또한 상태 값을 변경 해야 한다,,
-
- // 1. 해당로우에 입력형태를 확인
- // 2. 입력 형태가 단일이면
- // 2-1 질문 ID를 읽는다
- // 2-2 그리드를 for로 돌리면서
- // 같은 질문 ID인 경우를 확인하고
- // check 값인 Y인가를 확인한다
- // Y인 행의 값이 현재 넘어온 향의 값과 다르다면
- // N로 바꾸고
- // fQueryRptGridStatusChk(i)를 호출한다
- // 3. 다중인 경우
- // 바로 fQueryRptGridStatusChk(rowid)를 호출해서 상태값만 변경한다.
- var QuerType;
- //QuerType = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_choitype")) ;
- //model.alert("QuerType"+":"+QuerType);
- var Chtype ;
- var SelRowQuerId = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqrqestid"));
- var SelRowChk = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
- var ForRowQuerId;
- var ForRowChk;
- var QuerType;
-
- // model.alert("SelRowQuerId"+":"+SelRowQuerId)
- // model.alert("SelRowChk"+":"+SelRowChk)
-
- for( var fRow = 1 ; fRow < grd_amit.rows; fRow++)
- {
- // 그리드의 질문ID를 가지고 온다
- ForRowQuerId = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_inqrqestid"));
- // model.alert("ForRowQuerId"+":"+ForRowQuerId)
-
- // For Loop에 의한 질문ID와 선택된 Row의 질문ID가 같은 가를 확인한다.
- if ( SelRowQuerId == ForRowQuerId) {
- // model.alert("dkdkdk1")
-
- // 같은 질문ID의 질문 항목에 있는 유형 중 질문 인것을 파악 한다.
- if ( grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_qestflag")) == 'Q') {
- // model.alert("dkdkdk2")
- // 유형인 질문인 것의 답안 형태를 가지고 온다
- QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype")) ;
- //QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype"));
- }
- // model.alert("QuerType1"+":"+QuerType)
-
- // 단일 인지를 파악 한다
- if ( QuerType == '2' )
- {
- // For Loop에 의해 돌아 가는 행의 선택 값을 가지고 온다
- ForRowChk= grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox"));
- // model.alert("ForRowChk"+":"+ForRowChk)
-
- // 현재 행의 값이 'Y'인지를 파악한다
- if ( ForRowChk == 'Y') {
- // model.alert("333")
- // 선택된 행과 현재의(for loop) 행이 같은 행인지 여부를 파악한다
- if ( rowid != fRow ) {
- // 선택된 행과 현재의 행이 다른 행인 경우 현재의 행을 N로 선택하고
- // 현재의 행의 status를 변경한다.
- // model.alert("4444")
- grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox")) = 'N' ;
- fQueryRptGridStatusChk(fRow);
- } else
- {
- // model.alert("5555")
- // for loop의 행과 선택 행이 같은 행 이므로 Status만 변경한다.
- fQueryRptGridStatusChk(fRow);
- }
-
- }
- }
- else
- {
- // 단일 선택이 아닌 경우 즉 다중선택인 경우 해당 row의 status를 변경한다
- // model.alert("6666")
- if ( rowid == fRow ) {
- // model.alert("7777")
- fQueryRptGridStatusChk(fRow);
- }
- }
- }
-
- }
- }
- function fQueryRptGridStatusChk(rowid)
- {
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
-
- var CheckV1=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbit"));
- var CheckV2=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
- //model.alert(CheckV1);
- //model.alert(CheckV2);
- if(CheckV1 == 'I') {
- if(CheckV2 =='Y'){
- grd_amit.rowStatus(rowid)=1;
- }else{
- grd_amit.rowStatus(rowid)=0;
- }
- }else{
- if(CheckV2 =='N'){
- grd_amit.rowStatus(rowid)=4;
- }else{
- // grd_amit.rowStatus(rowid)=0;
- if ( grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqransw"))!="") {
- grd_amit.rowStatus(rowid)=2;
- } else {
- grd_amit.rowStatus(rowid)=0;
- }
- }
-
- }
- // 넘겨 받은 rowid의
- // 상태비트와 check를 읽는다
- //
- // 상태가 I인 경우
- // check가 Y라면 상태는 입력이고
- // N라면 조회원래 상태로 변경
- // 상태가 S인 경우
- // N라면 상태값은 삭제
- // Y라면 상태 변화 없음 -> 조회원래 상태로 변경
-
- // 그리드상태 값을 변경하는 필요...
-
-
-
- }
-
- ===================================================================================
- @desc : 공통 저장정보관련 초기화
- =====================================================================================
- function fInitSaveData(){
- model.resetInstanceNode("/root/send/save");
- }
-
-
- ===================================================================================
- @desc : 검사결과에 따른 값이 공식에 의해서 결과도출
- =====================================================================================
- // 반올림
- function round(val,precision) {
- if(!isNaN(val) && val != Number.POSITIVE_INFINITY) {
- val = val * Math.pow(10,precision);
- val = Math.round(val);
- return val/Math.pow(10,precision);
- }else {
- return ;
- }
-
- }
-
- */
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,1178;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:177px; height:14px; ">[자동판정]환자별 문진등록</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
- <caption id="caption5" style="left:805px; top:212px; width:192px; height:20px; ">* 아래 화살표와 ` 키를 사용하세요</caption>
- <group id="group2" style="left:0px; top:5px; width:1179px; height:90px; vertical-align:top; ">
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:310px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
- <caption id="caption34" class="search_name" style="left:10px; top:10px; width:117px; height:17px; ">건진상세분류 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/send_04900/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:130px; top:10px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_srchfromdd" ref="/root/send_04900/srchfromdd" class="input_s_essential" inputtype="date" style="left:399px; top:10px; width:96px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send_04900/srchtodd" class="input_s_essential" inputtype="date" style="left:519px; top:10px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_pnm" ref="/root/send_04900/srchhngnm" class="input_default" style="left:850px; top:10px; width:69px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send_04900/srchpid" class="input_default" style="left:745px; top:10px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode != 13) return ;
- inputEnterKey("btn_srchpat","DOMActivate");
- /*if (event.keyCode == "13")
- {
- fGetAcptList();
- model.refresh();
- }*/
- ]]>
- </script>
- </input>
- <caption id="caption36" class="search_name" style="left:655px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption37" class="search_no_b" style="left:499px; top:11px; width:12px; height:17px; ">~</caption>
- <button id="btn_srchpat" class="icon_search" style="left:830px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send_05100/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetAcptList();
- */
- fSearchPatInfo("SMAHA00100", "pid", model.getValue(ipt_pid.attribute("ref")), "N", "/root/send_05100/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption38" class="search_name" style="left:655px; top:60px; width:89px; height:17px; ">판정의 :</caption>
- <select1 id="cmb_drid" ref="/root/send_04900/srchdrid" class="combo_s_essential" appearance="minimal" style="left:745px; top:60px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetAcptList();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:10px; top:35px; width:97px; height:17px; ">상태구분 :</caption>
- <caption id="caption11" class="search_name" style="left:655px; top:35px; width:89px; height:17px; ">개인/단체:</caption>
- <select1 id="cmb_srchcmpyflag" ref="/root/send_04900/srchcmpyyn" class="combo_s_essential" appearance="minimal" style="left:745px; top:35px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>개인</label>
- <value>N</value>
- </item>
- <item>
- <label>단체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="checkbox2" ref="/root/send_04900/srchrsltendyn" overflow="visible" appearance="full" style="left:165px; top:60px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>결과</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:300px; top:60px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>판정중</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- <select id="checkbox4" ref="/root/send_04900/srchrsltcnststatflag" overflow="visible" appearance="full" style="left:560px; top:60px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>결과상담완료</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox5" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:455px; top:60px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>판정완료(수정)</label>
- <value>S</value>
- </item>
- </choices>
- </select>
- <select id="checkbox6" ref="/root/send_04900/srchrtimeyn" overflow="visible" appearance="full" style="left:100px; top:60px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검사중</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox7" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:100px; top:35px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>가예약</label>
- <value>A</value>
- </item>
- </choices>
- </select>
- <select id="checkbox8" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:165px; top:35px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약보류</label>
- <value>B</value>
- </item>
- </choices>
- </select>
- <select id="checkbox9" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:35px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약</label>
- <value>C</value>
- </item>
- </choices>
- </select>
- <select id="checkbox10" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:300px; top:35px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약취소</label>
- <value>D</value>
- </item>
- </choices>
- </select>
- <select id="checkbox11" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:60px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>판정대기</label>
- <value>H</value>
- </item>
- </choices>
- </select>
- <select id="checkbox12" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:380px; top:35px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>접수</label>
- <value>E</value>
- </item>
- </choices>
- </select>
- <select id="checkbox13" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:455px; top:35px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>접수취소</label>
- <value>F</value>
- </item>
- </choices>
- </select>
- <select id="checkbox1" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:380px; top:60px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>판정완료</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_place" ref="/root/send_04900/srchhealexamplacecd" appearance="minimal" style="left:885px; top:37px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:815px; top:37px; width:60px; height:17px; ">장소 :</caption>
- </group>
- <caption id="caption7" class="tit_2" style="left:314px; top:100px; width:151px; height:13px; ">기본사항</caption>
- <line id="line4" class="line_1" style="x1:312px; y1:114px; x2:1178px; y2:114px; "/>
- <line id="line6" class="line_2" style="x1:312px; y1:143px; x2:1178px; y2:143px; "/>
- <caption id="caption16" class="cell_1" style="left:630px; top:145px; width:63px; height:23px; vertical-align:middle; ">패키지명 :</caption>
- <output id="opt_pkgnm" ref="/root/main/patinfo/pkgnm" class="output_fix" style="left:695px; top:147px; width:483px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:631px; top:119px; width:73px; height:21px; vertical-align:middle; ">성별/나이 :</caption>
- <caption id="caption22" class="cell_1" style="left:310px; top:145px; width:64px; height:23px; vertical-align:middle; ">건진상태 :</caption>
- <caption id="caption18" class="cell_1" style="left:310px; top:170px; width:65px; height:39px; vertical-align:middle; ">검사추가항목 :</caption>
- <line id="line9" class="line_3" style="x1:311px; y1:210px; x2:1177px; y2:210px; "/>
- <datagrid id="grd_acptlist" nodeset="/root/main/acptlist/item" caption="상태^문진상태구분^문진지^성명^등록번호^성별^나이^검진일^패키지명^개인/단체^판정의^^^^^^^^^^^^^^^^^^^^^^^^^" colsep="^" colwidth="72, 85, 73, 65, 65, 35, 37, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:119px; width:309px; height:620px; ">
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <item>
- <label>가예약</label>
- <value>A</value>
- </item>
- <item>
- <label>예약보류</label>
- <value>B</value>
- </item>
- <item>
- <label>예약</label>
- <value>D</value>
- </item>
- <item>
- <label>접수</label>
- <value>E</value>
- </item>
- <item>
- <label>검사중</label>
- <value>J</value>
- </item>
- <item>
- <label>결과</label>
- <value>G</value>
- </item>
- <item>
- <label>판정대기</label>
- <value>H</value>
- </item>
- <item>
- <label>판정중</label>
- <value>K</value>
- </item>
- <item>
- <label>판정완료</label>
- <value>I</value>
- </item>
- <item>
- <label>결과상담완료</label>
- <value>L</value>
- </item>
- <item>
- <label>판정완료(수정)</label>
- <value>M</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="inqrstatcd" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>대기</label>
- <value>N</value>
- </item>
- <item>
- <label>입력중</label>
- <value>S</value>
- </item>
- <item>
- <label>입력완료</label>
- <value>Y</value>
- </item>
- <item>
- <label>문진거부</label>
- <value>G</value>
- </item>
- </choices>
- </col>
- <col ref="inqrrptidnm"/>
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="pkgnm"/>
- <col ref="cmpynm"/>
- <col ref="judgdrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inqrrptid" visibility="hidden"/>
- <!-- 20100723 JHP 기존 인스턴스구조를 조회인스턴스구조로 맞추기 윈한 컬럼 추가 시작 -->
- <col ref="addtestnm" visibility="hidden"/>
- <col ref="judgdd" visibility="hidden"/>
- <col ref="judgwaittermdd" visibility="hidden"/>
- <col ref="rsltcnstdrid" visibility="hidden"/>
- <col ref="rsltcnstrsrvdd" visibility="hidden"/>
- <col ref="rsltcnstflag" visibility="hidden"/>
- <col ref="diagnm" visibility="hidden"/>
- <col ref="sickcd" visibility="hidden"/>
- <col ref="cnstcnts" visibility="hidden"/>
- <col ref="prnttims" visibility="hidden"/>
- <col ref="prntrid" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="inqrremark" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="inqrenddd" visibility="hidden"/>
- <col ref="inqrendid" visibility="hidden"/>
- <col ref="inqrcreatdd" visibility="hidden"/>
- <col ref="inqrcreatid" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <!-- 20100723 JHP 기존 인스턴스구조를 조회인스턴스구조로 맞추기 윈한 컬럼 추가 끝 -->
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var target = event.target;
- var targetchk = target.substr(0,2);
- if(targetchk == '_$'){
- model.copyNode("/root/main/patinfo" , "/root/main/acptlist/item['"+grd_acptlist.row+"']");
- var inqrrptid = model.getValue("/root/main/patinfo/inqrrptid")
- model.setValue("/root/send_04900/inqrlist/inqrrptid" , inqrrptid);
- fGetInqrCdList(); //문진 콤보박스 셋팅
- model.refresh();
- //화면 하단에 셋팅하는 데이터
- var inqrcreatdd = model.getValue("/root/main/patinfo/inqrcreatdd");
- var inqrcreatid = model.getValue("/root/main/patinfo/inqrcreatid");
- var inqrenddd = model.getValue("/root/main/patinfo/inqrenddd");
- var inqrendid = model.getValue("/root/main/patinfo/inqrendid");
- opt_inqrstat.value = "최초입력일 : " + inqrcreatdd + " " + inqrcreatid + " 최종작성일 : " + inqrenddd + " " + inqrendid ;
-
- model.resetInstanceNode("/root/main/amitlist");
- grd_amit.clearStatus();
- grd_amit.refresh();
- //환자가 문진을 입력한적이 잇으면 hist에 저장이 되고 그 데이터를 불러와서 콤보박스에 기본 셋팅 , 문진지 선택 해준다.
-
- cmb_cboinqrid.dispatch("xforms-value-changed");
- }
- // model.refresh();
- //grd_acptlist.row
- /*
- if(grd_acptlst.isCell(event.target) && grd_acptlst.row < grd_acptlst.rows) {
- //grd_rsltlst.visible = false;
-
- //초기화
- model.removeNodeset("/root/main/list/amqblist");
- model.resetInstanceNode("/root/disply/rptqrcl");
- model.removeNodeset(grd_amit.nodeset);
- model.resetInstanceNode("/root/disply/langlst");
- model.resetInstanceNode("/root/main/condition/inqrrptid");
- fGetRsltInfo();
-
-
- model.makeValue("/root/temp/grd_acptlstno", grd_acptlst.row);
- //화면상단정보 설정
- model.makeValue("/root/main/info/rsrvacptinfo/item/statflag","E");
- var sPid = model.getValue("/root/main/acptinfo/item/pid" );
- var sOrddd = model.getValue("/root/main/acptinfo/item/orddd" );
- var iCretno = 1;//model.getValue("/root/main/acptinfo/item/cretno" );
- if( (sPid != "" ) &&
- (sOrddd != "" ) &&
- (iCretno != "" ) &&
- (iCretno != "0" ) ){
- //ahafSetScreenTopPatInfo( sPid, sOrddd, iCretno );
- }
-
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- grd_acptlist.gridToInstance();
- // grd_acptlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- /*
- if(event.button == 3) {
- if(isDataCell()) {
- setPopupMenu("grd_acptlst", false, "/root/temp/popupmenu/item", "name", "func");
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <caption id="caption15" class="tit_2" style="left:5px; top:100px; width:151px; height:13px; ">문진입력 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:114px; x2:309px; y2:114px; "/>
- <output id="opt_sex" ref="/root/main/patinfo/sex" class="output_fix" style="left:707px; top:121px; width:25px; height:19px; "/>
- <output id="opt_hngnm" ref="/root/main/patinfo/hngnm" class="output_fix" style="left:523px; top:121px; width:105px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:311px; top:119px; width:64px; height:23px; vertical-align:middle; ">등록번호 :</caption>
- <caption id="caption24" class="cell_1" style="left:455px; top:119px; width:64px; height:23px; vertical-align:middle; ">성 명 :</caption>
- <output id="opt_pid" ref="/root/main/patinfo/pid" class="output_fix" style="left:378px; top:121px; width:74px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:495px; y1:232px; x2:1178px; y2:232px; "/>
- <caption id="caption4" class="tit_2" style="left:314px; top:219px; width:126px; height:14px; ">문진상세</caption>
- <button id="btn_savepatinfo" class="btn5_letter4" style="left:1112px; top:720px; width:64px; height:19px; ">
- <caption>문진저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chk = messageBox("예(문진완료), 아니오(일부입력), 취소", "S999");
- if( chk == 6 || chk ==7) { //예6 , 아니오7 , 취소2
-
-
- model.removenode("/root/send_04900/savedata/amitlist");
- model.makeNode("/root/send_04900/savedata/amitlist");
-
- // 20100728 JHP 문진지별 질문내용에 변경된 내용이 없을때 저장을 하지 않는다.
- //model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
- model.setValue("/root/send_04900/savedata/amitlist", getGridUpdateData(grd_amit));
-
- if(model.getValue("/root/send_04900/savedata/amitlist") == ""){
- messageBox("문진지별 질문내용에 변경된내용이 없습니다. 저장 ","E001");
- return;
- }
-
- if(chk == 6){inqrstatcd = 'Y';}
- else if(chk == 7){inqrstatcd = 'S';}
-
- model.setValue("/root/send_04900/inqrlist/inqrstatcd", inqrstatcd);
-
- fHistSaveData(inqrstatcd); //이력처리
- submit("TXAHB04901",false);
-
- //저장이 올바로 되면
- if(model.getValue("/root/temp/item/endyn") == 'Y'){
- finit(); //저장후 대기자 리스트만 남겨두고 초기화
- fGetAcptList();//환자 재조회--최종 수정자 때문에
- grd_acptlist.dispatch("ondblclick");
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:760px; top:120px; width:64px; height:23px; vertical-align:middle; ">건진일 :</caption>
- <output id="opt_hopedd" ref="/root/main/patinfo/hopedd" class="output_fix" format="yyyy-mm-dd" style="left:827px; top:122px; width:74px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:455px; top:145px; width:64px; height:23px; vertical-align:middle; ">문진상태 :</caption>
- <select1 id="cmb_inqrflag" ref="/root/main/patinfo/inqrstatcd" class="combo_default" disabled="true" appearance="minimal" style="left:523px; top:147px; width:105px; height:19px; background-color:#e2e2f5; ">
- <choices>
- <item>
- <label>대기</label>
- <value>N</value>
- </item>
- <item>
- <label>입력중</label>
- <value>S</value>
- </item>
- <item>
- <label>입력완료</label>
- <value>Y</value>
- </item>
- <item>
- <label>문진거부</label>
- <value>G</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cboinqrid" ref="/root/send_04900/inqrlist/inqrrptid" visibility="visible" appearance="minimal" style="left:387px; top:212px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/langlst">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if( model.getValue("/root/main/patinfo/inqrrptid") != model.getValue("/root/send_04900/inqrlist/inqrrptid")
- && model.getValue("/root/main/patinfo/inqrrptid") != '-'){
- messageBox("해당 환자는 작성중이거나 작성 완료된 문진지가 있습니다" , "I999");
- }
- fRetriveReportQuryClsf();
- model.refresh();
- // cboinqrid.refresh();
- ]]>
- </script>
- </select1>
- <textarea id="txt_testnm" ref="/root/main/patinfo/addtestnm" dragmode="true" scroll="vertical" editable="false" style="left:378px; top:170px; width:250px; height:40px; background-color:#e2e2f5; "/>
- <caption id="caption8" class="tit_2" style="left:500px; top:219px; width:126px; height:13px; ">문진지별 질문내용</caption>
- <line id="line1" class="line_1" style="x1:310px; y1:232px; x2:490px; y2:232px; "/>
- <treeview id="trvclsf" ref="/root/main/list/treevalue" buttoncolor="#ff00ff" expandedimage="tree_select.bmp" hasbuttons="true" hasimages="true" haslines="true" image="tree_normal.bmp" itemsettype="depth" linecolor="#0000ff" singleexpand="false" depth="3" style="left:310px; top:235px; width:180px; height:503px; font-family:돋움; ">
- <itemset nodeset="/root/init/rptqrcl">
- <label ref="ajclsnm"/>
- <value ref="ajclscd"/>
- <depth ref="trdpth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkOpener()){ //팝업이면 데이터 셋팅을 변경한후에 조회
- var SMAHB04900_PARM = opener.javascript.getParameter("SMAHB04900_PARM");
- var array_parm = SMAHB04900_PARM.split("▦");
- }else{
- var array_parm = "";
- }
-
- var item = trvclsf.item(trvclsf.selectedIndex);
-
- var iRow = item.index + 1;
- if( trvclsf.selectedindex == -1 ){
- alert("해당 아이템을 선택하세요");
- }else{
- // 20100722 JHP 메인창으로 열엇을때 array_parm[8] 이값이 없기때문에 if문 타지를 않는다. 변경함.
- if(array_parm[8] != 'Y'){//저장버튼들 비활성화되면서 조회기능만이므로 다음 메세지 나오지 않음.
- var updtdata =getGridUpdateData(grd_amit);
-
- if(updtdata !=""){
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장하시고 조회작업을","Q003");
- if (ret == 6) {
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = model.getValue("/root/main/patinfo/healexamflag");
- /// grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
- // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
- model.makeNode("/root/send_04900/savedata/amitlist");
- model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
-
- submit("TXAHB04901",false);
- }
- }
- }
-
- var selectitem = trvclsf.item(trvclsf.selectedindex).value;
- // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
- fChkView();
- /*
- if( model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") >1){
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- grd_amit.refresh();
- fCheckTranFlag();
- grd_amit.refresh();
- }else{//의료문진등 레벨이 1인걸 선택하면 자동으로 다음 선택됨.
- btn_next.dispatch("DOMActivate");
- }
- */
- //setTree(grd_amit, 3, 9, 3); -- 사용은 가능하나 이거 사용하면 입력 속도 느릴꺼라 예상됨.
- model.refresh();
-
- //전립선 금액 계산 때문에 for문 실행체크함.
- if(selectitem == "001007000"){ //질환관련 문제
- for( j = 1 ; j <= getNodesetCount("/root/main/amitlist") ; j++){
-
- var inqrqestid_j = model.getValue("/root/main/amitlist['"+ j+"']/amit_inqrqestid");
- var amit_chkbox = model.getValue("/root/main/amitlist['"+ j+"']/amit_chkbox");
-
- if( (inqrqestid_j == '537' ||inqrqestid_j == '538' ||inqrqestid_j == '539' ||inqrqestid_j == '540' ||inqrqestid_j == '541' ||inqrqestid_j == '542' ||inqrqestid_j == '543')
- && (amit_chkbox == 'Y')){
- var point = model.getValue("/root/main/amitlist['"+ j+"']/amit_answreqno");
- var point_i = (parseInt(point) -1);
-
- model.setValue("/root/point001007000/p"+ inqrqestid_j , point_i );
- }
- if( inqrqestid_j == '544' ){
- model.setValue("/root/point001007000/psum_row" , j);
- }
- }//for end
- // 20100723 JHP 처음 조회 했을때 문진지별 질문내용에 계산되는 부분에 처음 계산을 하게끔 계산로직 태운다.
- fFirstSumChk();
- }//001007000 end
-
- }
- ]]>
- </script>
- </treeview>
- <output id="opt_healexamflag" ref="/root/main/acptinfo/item/healexamflag" class="output_fix" visibility="hidden" style="left:975px; top:95px; width:65px; height:19px; "/>
- <output id="opt_rsrvdd" ref="/root/main/acptinfo/item/rsrvdd" class="output_fix" visibility="hidden" style="left:1045px; top:95px; width:65px; height:19px; "/>
- <output id="opt_rsrvno" ref="/root/main/acptinfo/item/rsrvno" class="output_fix" visibility="hidden" style="left:1113px; top:95px; width:65px; height:19px; "/>
- <button id="btn_next" class="btn2_letter4" style="left:735px; top:212px; width:64px; height:19px; ">
- <caption>다음분류</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 20100723 JHP 다음분류에서 오류 발생하여 수정 정리
- // 1. 그리드에 업데이트 내용이 있어서 예를 누르면 저장하고 다음분류로 넘어간다.
- // 2 그리드에 업데이트 내용이 있어도 아니오를 누르면 그냥 넘어간다. .
- // 3. 그리드에 업데이트 내용이 없으면 그냥 넘어간다.
- var updtdata =getGridUpdateData(grd_amit);
-
- if(updtdata !=""){
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장하시고 조회작업을","Q003");
- //if (ret == 7) {return false;}
- if (ret == 6) {
- model.makeNode("/root/send_04900/savedata/amitlist");
- model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
-
- var item = trvclsf.item(trvclsf.selectedIndex);
- var iRow = item.index + 1;
-
- if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") != 1) {
- submit("TXAHB04901",false);
- }
- }
- }
- // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
- /// grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
- // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
- trvclsf.select(trvclsf.selectedindex+1);
- // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
- fChkView();
- //fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="icon_pre_month" style="left:630px; top:215px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridWidthcontrol("amit" ,"W");
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_next_month" style="left:650px; top:215px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridWidthcontrol("amit" ,"N");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/patinfo/age" class="output_fix" style="left:732px; top:121px; width:25px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:630px; top:170px; width:64px; height:39px; vertical-align:middle; ">
- <![CDATA[문진메모 :
- ]]>
- </caption>
- <line id="line5" class="line_2" style="x1:312px; y1:169px; x2:1178px; y2:169px; "/>
- <button id="btn_updt" class="btn5_letter2" style="left:1067px; top:720px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if( messageBox("문진을 ", "Q002") == 6 ) {
- // fInitSaveData();
- // fSaveRslt("I"); //fSaveRsltInfo
- // gridMergeRow(grd_rsltlst);
- // fgrdImage(grd_rsltlst)
- //
- // }
- // model.setValue("/root/send/amitlist/amit_healexamflag" , model.getValue("/root/init/send/srchfromdd") );
- // model.setValue("/root/main/list/amitlist/amit_healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
- // model.setValue("/root/main/list/amitlist/amit_rsrvdd" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
- // model.setValue("/root/main/list/amitlist/amit_rsrvno" , model.getValue("/root/main/acptinfo/item/rsrvno") );
-
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
-
- // model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
-
- submit("TXAHB04901");
- fHistSaveData('S'); //입력중
- // fGetRsltPatList();
- // fRetriveReportQuryClsf();
- fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/main/patinfo/inqrremark" style="left:695px; top:170px; width:483px; height:40px; "/>
- <select1 id="cmb_statflag" ref="/root/main/patinfo/statflag" class="combo_default" disabled="true" appearance="minimal" style="left:378px; top:147px; width:74px; height:19px; background-color:#e2e2f5; ">
- <choices>
- <item>
- <label>가예약</label>
- <value>A</value>
- </item>
- <item>
- <label>예약보류</label>
- <value>B</value>
- </item>
- <item>
- <label>예약</label>
- <value>D</value>
- </item>
- <item>
- <label>접수</label>
- <value>E</value>
- </item>
- <item>
- <label>검사중</label>
- <value>J</value>
- </item>
- <item>
- <label>결과</label>
- <value>G</value>
- </item>
- <item>
- <label>판정대기</label>
- <value>H</value>
- </item>
- <item>
- <label>판정중</label>
- <value>K</value>
- </item>
- <item>
- <label>판정완료</label>
- <value>I</value>
- </item>
- <item>
- <label>결과상담완료</label>
- <value>L</value>
- </item>
- <item>
- <label>판정완료(수정)</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/main/condition/inqrrptid" visibility="visible" appearance="minimal" style="left:877px; top:720px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0008list/A0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetriveReportQuryClsf();
- // fRetriveQuryReport();
- cmb_cboinqrid.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_gubu" class="btn5_letter4" style="left:1000px; top:720px; width:64px; height:19px; ">
- <caption>문진거부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("문진을 거부 하셨습니까? ", "Q999");
- if(rtn == 6){
- fHistSaveData('G') ;
- // fInqrExeStat();
- model.resetInstanceNode("/root/main/patinfo");
- model.resetInstanceNode("/root/main/amitlist");
- model.resetInstanceNode("/root/main/list/treevalue");
- fGetAcptList();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <output id="opt_inqrstat" style="left:495px; top:720px; width:380px; height:19px; "/>
- <button id="btn_init" class="btn2_letter3" style="left:1125px; top:212px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:670px; top:212px; width:69px; height:19px; ">
- <caption>전체보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridWidthcontrol("amit" ,"A");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="cell_1" style="left:905px; top:120px; width:50px; height:23px; vertical-align:middle; ">e-mail :</caption>
- <input id="input1" ref="/root/main/patinfo/email" style="left:957px; top:122px; width:175px; height:19px; "/>
- <button id="button2" class="btn5_letter2" style="left:1136px; top:122px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/main/patinfo/savetable",'E');
- submit("TXAHB04905", false);
- fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" style="left:645px; top:190px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/main/patinfo/savetable",'M');
- submit("TXAHB04905", false);
- fGetAcptList();
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_amit" nodeset="/root/main/amitlist" autoresize="true" caption="기관코드^문진지ID^레벨^문항ID^질문번호^유형^유형구분^제목^질문내용^답안형태^선택^디폴트^필수^서술형답안^추가질문1^추가답안1^추가질문2^추가답안2^추가질문3^추가답안3^시작일^종료일^사용여부^출력순서^최초등록자^최종수정자^옵션^질문chk^문진chket^언어^건진구분^건진상세구분^예약일자^예약번호^답안ID^최종수정자^최종수정일시" colsep="^" colwidth="0, 0, 41, 49, 73, 100, 41, 100, 346, 61, 35, 40, 39, 100, 100, 100, 100, 100, 100, 100, 72, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" rowheader="update" rowsep="|" style="left:495px; top:237px; width:683px; height:478px; ">
- <col ref="amit_instcd" visibility="hidden"/>
- <col ref="amit_inqrrptid" visibility="hidden"/>
- <col ref="amit_level"/>
- <col ref="amit_inqrqestid"/>
- <col ref="amit_qestno" type="input" visibility="hidden"/>
- <col disabled="true" ref="amit_qestflagnm"/>
- <col disabled="true" ref="amit_qestflag" visibility="hidden"/>
- <col ref="amit_titl" visibility="hidden"/>
- <col ref="amit_cnts"/>
- <col disabled="true" ref="amit_choitype" type="combo">
- <choices>
- <item>
- <label>자유입력</label>
- <value>1</value>
- </item>
- <item>
- <label>단일선택</label>
- <value>2</value>
- </item>
- <item>
- <label>다중선택</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="amit_chkbox" type="checkbox"/>
- <col ref="amit_defaulyn"/>
- <col checkvalue="Y,N" disabled="true" ref="amit_essnchoiflag" type="checkbox"/>
- <col ref="amit_inqransw" type="input"/>
- <col ref="amit_addqest1"/>
- <col ref="amit_addansw1" type="input"/>
- <col ref="amit_addqest2"/>
- <col ref="amit_addansw2" type="input"/>
- <col ref="amit_addqest3"/>
- <col ref="amit_addansw3" type="input"/>
- <col ref="amit_fromdd" visibility="hidden"/>
- <col ref="amit_todd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="amit_useyn" type="checkbox" visibility="hidden"/>
- <col ref="amit_prnseq" type="input" visibility="hidden" style="text-align:center; "/>
- <col ref="amit_fstrgstrid" visibility="hidden"/>
- <col ref="amit_lastupdtrid" visibility="hidden"/>
- <col ref="amit_chkbit" visibility="hidden"/>
- <col ref="amit_chkinqrqestid" visibility="hidden"/>
- <col ref="amit_chkbox2" visibility="hidden"/>
- <col ref="amit_langflag" visibility="hidden"/>
- <col ref="amit_healexamflag" visibility="hidden"/>
- <col ref="amit_healexamdetlflag" visibility="hidden"/>
- <col ref="amit_rsrvdd" visibility="hidden"/>
- <col ref="amit_rsrvno" visibility="hidden"/>
- <col ref="amit_answreqno" visibility="hidden"/>
- <col ref="amit_lastupdtrid"/>
- <col ref="amit_lastupdtdt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_amit.col == grd_amit.colRef("amit_chkbox") && model.getValue("/root/main/amitlist['"+grd_amit.row +"']/amit_qestflag" ) == 'A'){
- var rowid = grd_amit.row;
- fQueryRptGridCheck(rowid);
- fQueryRptGridStatusChk(rowid);
-
- //순서에따라 점수를 산출하기로 했고 답안에 대해서 순서변경이 절대 없기로 약속함(임미경)
- //전립선 질환 점수 합계
- var inqrqestid_j = model.getValue("/root/main/amitlist['"+ rowid+"']/amit_inqrqestid");
- // var amit_chkbox = model.getValue("/root/main/amitlist['"+ j+"']/amit_chkbox");
-
- if( (inqrqestid_j == '537' ||inqrqestid_j == '538' ||inqrqestid_j == '539' ||inqrqestid_j == '540' ||inqrqestid_j == '541' ||inqrqestid_j == '542' ||inqrqestid_j == '543')){
- // && (amit_chkbox == 'Y')){
- var point = model.getValue("/root/main/amitlist['"+ rowid+"']/amit_answreqno");
- var point_i = (parseInt(point) -1);
-
- model.setValue("/root/point001007000/p"+ inqrqestid_j , point_i );
- // 최초 셋팅은 질환관련 증상을 선택하면 값들을 셋팅한다.
- //선택시마다 값을 변경해 준다.
- var sum_point = parseInt(model.getValue("/root/point001007000/p537"))
- + parseInt(model.getValue("/root/point001007000/p538") )
- + parseInt(model.getValue("/root/point001007000/p539") )
- + parseInt(model.getValue("/root/point001007000/p540") )
- + parseInt(model.getValue("/root/point001007000/p541") )
- + parseInt(model.getValue("/root/point001007000/p542") )
- + parseInt(model.getValue("/root/point001007000/p543") )
-
- var row_id = model.getValue("/root/point001007000/psum_row") ;
- model.setValue("/root/main/amitlist['"+ row_id + "']/amit_addansw1" , sum_point);
- var check_box = model.getValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox");
- if(check_box == "Y"){
- grd_amit.rowStatus(row_id)=2; //업데이트
- }else{
- grd_amit.rowStatus(row_id)=1;
- model.setValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox" , 'Y');
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_amit.col == grd_amit.colRef("amit_inqransw") || grd_amit.col == grd_amit.colRef("amit_addansw1")
- || grd_amit.col == grd_amit.colRef("amit_addansw2") || grd_amit.col == grd_amit.colRef("amit_addansw3")){
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) = 'Y' ;
- // grd_amit.rowStatus(grd_amit.row)=1;
- var rowid = grd_amit.row;
- fQueryRptGridCheck(rowid);
- fQueryRptGridStatusChk(rowid);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( grd_amit.col == grd_amit.colRef("amit_chkbox") && model.getValue("/root/main/amitlist['"+grd_amit.row +"']/amit_qestflag" ) == 'A'){
- if(event.keyCode == '96'){ // 96은 `키 임.
- var value = "";
- if(grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) == 'Y'){
- value = 'N';
- }else{
- value = 'Y';
- }
- grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) = value ;
- fQueryRptGridCheck(grd_amit.row);
- fQueryRptGridStatusChk(grd_amit.row);
- }
- }
-
- ]]>
- </script>
- </datagrid>
- </group>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //F7 저장 단축키
- if(event.keyCode == 118) {
- if(grd_acptlst.row < 0) {
- messageBox("대기자를","C002");
- }else {
- save.dispatch("DOMActivate");
- }
- }
- //F9 다음 사람 단축키
- if(event.keyCode == 120) {
- if(grd_acptlst.row < 0) {
- grd_acptlst.row = 1;
- grd_acptlst.dispatch("onclick");
- }else if(grd_acptlst.row == grd_acptlst.rows -1) {
- messageBox("다음 대기자가","I004");
- return;
- }else {
- grd_acptlst.row = grd_acptlst.row + 1;
- grd_acptlst.dispatch("onclick");
- }
- }
-
- //F10 다음 검사 단축키
- if(event.keyCode == 121) {
- if(grd_rsltlst.row < 0) {
- grd_rsltlst.row = 1;
- }else if(grd_rsltlst.row == grd_rsltlst.rows - 1){
- messageBox("다음 검사내역이","I004");
- }else {
- grd_rsltlst.row = grd_rsltlst.row + 1;
- }
-
- if(!grd_rsltlst.isReadOnly(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts"))) {
- grd_rsltlst.editCell();
- }
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|